package com.jing.yao.modules.role.dao;


import com.jing.yao.component.mapper.YaoBaseMapper;
import com.jing.yao.modules.resource.dao.entity.ResourceEntity;
import com.jing.yao.modules.role.dao.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色数据库操作
 *
 * @author lirui
 * @since 2020-06-13
 */
@Mapper
public interface RoleMapper extends YaoBaseMapper<RoleEntity> {

    /**
     * 批量保存角色资源
     *
     * @param roleCode
     * @param resourceEntities
     * @param username
     */
    void saveRoleResource(@Param("roleCode") String roleCode, @Param("resourceEntities") List<ResourceEntity> resourceEntities, @Param("username") String username);
}
